<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    
    <script>
        // 1. 定时器类型
        //     a.  延迟执行  setTimeout
        //     b.  循环执行  setInterval
        setTimeout(function(){
            console.log('hello');
        },5000);
        // 循环执行
        setInterval(function(){
            console.log('world!');
        },1000);
    </script>
</body>
</html>